import  axios from "../../axios.js"

export default{
  //查询黑名单
  queryAll(data,binding)
  {
    return axios({
      url:'/crm/blacklist/queryAll',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //新增黑名单
  insert(data,binding){
    return axios({
      url:'/crm/blacklist/insert',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //删除黑名单数据
  deleteByIds(data,binding){
    return axios({
      url:'/crm/blacklist/deleteByIds',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //修改黑名单
  update(data,binding){
    return axios({
      url:'/crm/blacklist/update',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  // 查询过滤系统状态
  findFilterStatusApi(data){
      return axios({
        url:'/crm/queryTel1Filter',
        method:'get'
      })
    },
  // 控制过滤系统开关
  changeFilterApi(data){
    return axios({
      url:'/crm/updateTel1Filter',
      method:'get',
      params:data
    })
  },
};
